home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gssource.exe / UNIX-GCC.MAK < prev    next >
Encoding:
Makefile  |  1992-08-24  |  54.2 KB  |  1,578 lines

  1. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/gcc/X11 configuration.
  21. # Note: this makefile assumes you are using gcc in ANSI mode.
  22.  
  23. # ------------------------------- Options ------------------------------- #
  24.  
  25. ####### The following are the only parts of the file you should need to edit.
  26.  
  27. # ------ Generic options ------ #
  28.  
  29. # Define the installation commands and target directories for
  30. # executables and files.  Only relevant to `make install'.
  31.  
  32. INSTALL = install -c
  33. INSTALL_PROGRAM = $(INSTALL) -m 775
  34. INSTALL_DATA = $(INSTALL) -m 664
  35.  
  36. prefix = /usr/local
  37. exec_prefix = $(prefix)
  38. bindir = $(exec_prefix)/bin
  39. datadir = $(prefix)/lib
  40. gsdatadir = $(datadir)/ghostscript
  41.  
  42. # Define the default directory/ies for the runtime
  43. # initialization and font files.  Separate multiple directories with a :.
  44.  
  45. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  46.  
  47. # Define the name of the Ghostscript initialization file.
  48. # (There is no reason to change this.)
  49.  
  50. GS_INIT=gs_init.ps
  51.  
  52. # Choose generic configuration options.
  53.  
  54. # -DDEBUG
  55. #    includes debugging features (-Z switch) in the code.
  56. #      Code runs substantially slower even if no debugging switches
  57. #      are set.
  58. # -DNOPRIVATE
  59. #    makes private (static) procedures and variables public,
  60. #      so they are visible to the debugger and profiler.
  61. #      No execution time or space penalty.
  62.  
  63. GENOPT=
  64.  
  65. # ------ Platform-specific options ------ #
  66.  
  67. # Define the name of the C compiler.
  68.  
  69. CC=gcc
  70.  
  71. # Define the other compilation flags.
  72. # Add -DBSD4_2 for 4.2bsd systems.
  73. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  74. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  75. #   or any System III Unix, or System V release 3-or-older Unix.
  76. # Add -DSVR4 (not -DSYSV) for System V release 4.
  77. # XCFLAGS can be set from the command line.
  78. # We don't include -ansi, because this gets in the way of the platform-
  79. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  80. #   gcc to accept ANSI-style function prototypes and function definitions.
  81.  
  82. CFLAGS=-g -O $(XCFLAGS)
  83.  
  84. # Define platform flags for ld.
  85. # SunOS and some others want -X; Ultrix wants -x.
  86. # SunOS 4.n may need -Bstatic.
  87. # XLDFLAGS can be set from the command line.
  88.  
  89. LDFLAGS=$(XLDFLAGS)
  90.  
  91. # Define any extra libraries to link into the executable.
  92. # SCO ODT apparently needs -lsocket.
  93. # (Libraries required by individual drivers are handled automatically.)
  94.  
  95. EXTRALIBS=
  96.  
  97. # Define the include switch(es) for the X11 header files.
  98. # This can be null if handled in some other way (e.g., the files are
  99. # in /usr/include, or the directory is supplied by an environment variable).
  100. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  101. # not in $(XINCLUDE).
  102.  
  103. XINCLUDE=-I/usr/local/X/include
  104.  
  105. # Define the directory/ies for the X11 library files.
  106. # This can be null if these files are in the default linker search path.
  107.  
  108. XLIBDIRS=-L/usr/local/X/lib
  109.  
  110. # ------ Devices and features ------ #
  111.  
  112. # Choose the language feature(s) to include.  See gs.mak for details.
  113.  
  114. FEATURE_DEVS=filter.dev dps.dev level2.dev
  115.  
  116. # Choose the device(s) to include.  See devs.mak for details.
  117.  
  118. DEVICE_DEVS=x11.dev
  119.  
  120. # ---------------------------- End of options --------------------------- #
  121.  
  122. # Define the name of the makefile -- used in dependencies.
  123.  
  124. MAKEFILE=unix-gcc.mak
  125.  
  126. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  127.  
  128. AK=
  129.  
  130. # Define the compilation rules and flags.
  131.  
  132. CCC=$(CC) $(CCFLAGS) -c
  133.  
  134. # --------------------------- Generic makefile ---------------------------- #
  135.  
  136. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  137. # is generic.  tar_cat concatenates all these together.
  138. #    Copyright (C) 1990, 1991 Aladdin Enterprises.  All rights reserved.
  139. #    Distributed by Free Software Foundation, Inc.
  140. #
  141. # This file is part of Ghostscript.
  142. #
  143. # Ghostscript is distributed in the hope that it will be useful, but
  144. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  145. # to anyone for the consequences of using it or for whether it serves any
  146. # particular purpose or works at all, unless he says so in writing.  Refer
  147. # to the Ghostscript General Public License for full details.
  148. #
  149. # Everyone is granted permission to copy, modify and redistribute
  150. # Ghostscript, but only under the conditions described in the Ghostscript
  151. # General Public License.  A copy of this license is supposed to have been
  152. # given to you along with Ghostscript so you can know your rights and
  153. # responsibilities.  It should be in a file named COPYING.  Among other
  154. # things, the copyright notice and this notice must be preserved on all
  155. # copies.
  156.  
  157. # Partial makefile for Ghostscript, common to all Unix configurations.
  158.  
  159. # This part of the makefile gets inserted after the compiler-specific part
  160. # (xxx-head.mak) and before gs.mak and devs.mak.
  161.  
  162. # ----------------------------- Generic stuff ----------------------------- #
  163.  
  164. # Define the platform name.  For a "stock" System V platform,
  165. # use sysv_ instead of unix_.
  166.  
  167. PLATFORM=unix_
  168.  
  169. # Define the extensions for the object and executable files.
  170.  
  171. OBJ=o
  172. XE=
  173.  
  174. # Define the need for uniq.
  175.  
  176. UNIQ=
  177.  
  178. # Define the current directory prefix, shell quote string, and shell names.
  179.  
  180. EXP=./
  181. QQ=\"
  182. SHELL=/bin/sh
  183. SH=$(SHELL)
  184. SHP=$(SH) $(EXP)
  185.  
  186. # Define the compilation rules and flags.
  187.  
  188. CCFLAGS=$(GENOPT) $(CFLAGS)
  189.  
  190. .c.o: $(AK)
  191.     $(CCC) $*.c
  192.  
  193. CC0=$(CCC)
  194. CCD=$(CCC)
  195. CCINT=$(CCC)
  196. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  197. #    Distributed by Free Software Foundation, Inc.
  198. #
  199. # This file is part of Ghostscript.
  200. #
  201. # Ghostscript is distributed in the hope that it will be useful, but
  202. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  203. # to anyone for the consequences of using it or for whether it serves any
  204. # particular purpose or works at all, unless he says so in writing.  Refer
  205. # to the Ghostscript General Public License for full details.
  206. #
  207. # Everyone is granted permission to copy, modify and redistribute
  208. # Ghostscript, but only under the conditions described in the Ghostscript
  209. # General Public License.  A copy of this license is supposed to have been
  210. # given to you along with Ghostscript so you can know your rights and
  211. # responsibilities.  It should be in a file named COPYING.  Among other
  212. # things, the copyright notice and this notice must be preserved on all
  213. # copies.
  214.  
  215. # Generic makefile for Ghostscript.
  216. # The platform-specific makefiles `include' this file.
  217. # They define the following symbols:
  218. #    GS_INIT - the name of the initialization file for Ghostscript,
  219. #        normally gs_init.ps.
  220. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  221. #        initialization and font files at run time.
  222. #    DEVICE_DEVS - the devices to include in the executable.
  223. #        See devs.mak for details.
  224. #    DEVICE_DEVS2...DEVICE_DEVS5 - additional devices, if the definition of
  225. #        DEVICE_DEVS doesn't fit on one line.
  226. #        See devs.mak for details.
  227. #    FEATURE_DEVS - the optional features to include in the
  228. #        executable.  Current features are:
  229. #            dps - support for Display PostScript extensions.
  230. #            *** PARTIALLY IMPLEMENTED, SEE language.doc. ***
  231. #            level2 - support for PostScript Level 2 extensions.
  232. #            *** PARTIALLY IMPLEMENTED, SEE language.doc. ***
  233. #            compfont - support for composite (type 0) fonts.
  234. #            *** NOT IMPLEMENTED YET. ***
  235. #            filter - support for Level 2 filters (other than eexec,
  236. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  237. #            and SubFileDecode, which are always included).
  238. #            ccfonts - precompile fonts into C, and link them
  239. #            with the executable.  In the standard makefiles,
  240. #            this is only implemented for a very few fonts:
  241. #            see fonts.doc for details.
  242. # It is very unlikely that anyone would want to edit the remaining
  243. #   symbols, but we describe them here for completeness:
  244. #    PLATFORM - a "device" name for the platform, so that platforms can
  245. #        add various kinds of resources like devices and features.
  246. #    QQ - a " preceded by whatever escape characters are needed to
  247. #        persuade the shell to pass a " to a program (" on MS-DOS,
  248. #        \" on Unix).
  249. #    XE - the extension for executable files (e.g., null or .exe).
  250. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  251. #    CCC - the C invocation for normal compilation.
  252. #    CCD - the C invocation for files that store into frame buffers or
  253. #        device registers.  Needed because some optimizing compilers
  254. #        will eliminate necessary stores.
  255. #    CC0 - a C invocation with the fewest possible flags.  Needed because
  256. #        MS-DOS limits the length of command lines to 128 characters.
  257. #    CCINT - the C invocation for compiling the main interpreter module,
  258. #        normally the same as CCC: this is needed because the
  259. #        Borland compiler generates *worse* code for this module
  260. #        (but only this module) when optimization (-O) is turned on.
  261. #    AK - if source files must be converted from ANSI to K&R syntax,
  262. #        this is ansi2knr$(XE); if not, it is null.
  263. #        If a particular platform requires other utility programs
  264. #        to be built, AK must include them too.
  265. #    UNIQ - null on systems that provide the uniq utility,
  266. #        uniq$(XE) on systems where we have to provide our own.
  267. #    SHP - the prefix for invoking a shell script in the current directory
  268. #        (null for MS-DOS, $(SH) ./ for Unix).
  269. #    EXPP, EXP - the prefix for invoking an executable program in the
  270. #        current directory (null for MS-DOS, ./ for Unix).
  271. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  272. # The platform-specific makefiles must also include rules for creating
  273. #   ansi2knr$(XE) and genarch$(XE) from the corresponding .c files,
  274. #   and for making arch.h by executing genarch$(XE).  (This
  275. #   shouldn't really be necessary, but Turbo C and Unix C treat the -o
  276. #   switch slightly differently (Turbo C requires no following space,
  277. #   Unix C requires a following space), and I haven't found a way to capture
  278. #   the difference in a macro; also, Unix requires ./ because . may not be
  279. #   in the search path, whereas MS-DOS always looks in the current
  280. #   directory first.)
  281.  
  282. all default: gs$(XE)
  283.  
  284. mostlyclean realclean distclean clean:
  285.     rm -f *.$(OBJ) *.a core gmon.out
  286.     rm -f *.dev *.d_* arch.h gconfig.h obj*.tr lib*.tr
  287.     rm -f t _temp_* _temp_*.* *.map *.sym
  288.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) uniq$(XE)
  289.     rm -f gs$(XE) $(BEGINFILES)
  290.  
  291. # A rule to do a quick and dirty compilation attempt when first installing
  292. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  293.  
  294. begin:
  295.     rm -f arch.h genarch$(XE) $(BEGINFILES)
  296.     make arch.h
  297.     - $(CCC) *.c
  298.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  299.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ)
  300.  
  301. # Auxiliary programs
  302.  
  303. arch.h: genarch$(XE)
  304.     $(EXPP) $(EXP)genarch arch.h
  305.  
  306. # -------------------------------- Library -------------------------------- #
  307.  
  308. # Define the inter-dependencies of the .h files.
  309. # Since not all versions of `make' defer expansion of macros,
  310. # we must list these in bottom-to-top order.
  311.  
  312. # Generic files
  313.  
  314. arch_h=arch.h
  315. std_h=std.h $(arch_h)
  316. gdebug_h=gdebug.h
  317. gs_h=gs.h $(std_h)
  318. gx_h=gx.h $(gs_h) $(gdebug_h)
  319.  
  320. # Platform interfaces
  321.  
  322. gp_h=gp.h
  323. gpcheck_h=gpcheck.h
  324.  
  325. # C library interfaces
  326.  
  327. # Because of variations in the "standard" header files between systems,
  328. # we define local include files named *_.h to substitute for <*.h>.
  329.  
  330. vmsmath_h=vmsmath.h
  331.  
  332. dos__h=dos_.h
  333. malloc__h=malloc_.h
  334. math__h=math_.h $(vmsmath_h)
  335. memory__h=memory_.h
  336. stat__h=stat_.h
  337. string__h=string_.h
  338. time__h=time_.h
  339.  
  340. # Miscellaneous
  341.  
  342. gserrors_h=gserrors.h
  343.  
  344. GX=$(AK) $(gx_h)
  345. GXERR=$(GX) $(gserrors_h)
  346.  
  347. ###### Low-level facilities and utilities
  348.  
  349. ### Include files
  350.  
  351. gschar_h=gschar.h
  352. gscie_h=gscie.h
  353. gscolor_h=gscolor.h
  354. gscolor2_h=gscolor2.h
  355. gscoord_h=gscoord.h
  356. gscrypt1_h=gscrypt1.h
  357. gscspace_h=gscspace.h
  358. gsfont_h=gsfont.h
  359. gsmatrix_h=gsmatrix.h
  360. gspaint_h=gspaint.h
  361. gspath_h=gspath.h
  362. gsprops_h=gsprops.h
  363. gsstate_h=gsstate.h $(gscolor_h)
  364. gstype1_h=gstype1.h
  365. gsutil_h=gsutil.h
  366.  
  367. gxarith_h=gxarith.h
  368. gxbitmap_h=gxbitmap.h
  369. gxcache_h=gxcache.h
  370. gxchar_h=gxchar.h $(gschar_h)
  371. gxclist_h=gxclist.h
  372. gxcpath_h=gxcpath.h
  373. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gxbitmap_h)
  374. gxdevmem_h=gxdevmem.h
  375. gxfdir_h=gxfdir.h
  376. gxfixed_h=gxfixed.h
  377. gxfont_h=gxfont.h $(gsfont_h)
  378. gximage_h=gximage.h
  379. gxlum_h=gxlum.h
  380. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  381. gxop1_h=gxop1.h
  382. gxpath_h=gxpath.h
  383. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  384.  
  385. gzcolor_h=gzcolor.h $(gscolor_h)
  386. gzdevice_h=gzdevice.h $(gxdevice_h)
  387. gzht_h=gzht.h
  388. gzline_h=gzline.h
  389. gzpath_h=gzpath.h $(gxpath_h)
  390. gzstate_h=gzstate.h $(gsstate_h)
  391.  
  392. ### Executable code
  393.  
  394. gsutil.$(OBJ): gsutil.c \
  395.   $(std_h) $(gsprops_h) $(gsutil_h)
  396.  
  397. gxcache.$(OBJ): gxcache.c $(GXERR) $(gpcheck_h) \
  398.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzdevice_h) $(gzcolor_h) \
  399.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  400.   $(gxcache_h) $(gzstate_h) $(gzpath_h)
  401.  
  402. gxclist.$(OBJ): gxclist.c $(GXERR) \
  403.   $(gsmatrix_h) $(gxbitmap_h) $(gxclist_h) $(gxdevice_h) $(gxdevmem_h)
  404.  
  405. gxcolor.$(OBJ): gxcolor.c $(GXERR) \
  406.   $(gscspace_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gxlum_h) \
  407.   $(gzcolor_h) $(gzht_h) $(gzstate_h)
  408.  
  409. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  410.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  411.  
  412. gxdither.$(OBJ): gxdither.c $(GX) \
  413.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  414.  
  415. gxdraw.$(OBJ): gxdraw.c $(GX) $(gpcheck_h) \
  416.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  417.  
  418. gxfill.$(OBJ): gxfill.c $(GXERR) \
  419.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  420.  
  421. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  422.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  423.   $(gzdevice_h) $(gzstate_h)
  424.  
  425. gxht.$(OBJ): gxht.c $(GXERR) \
  426.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  427.  
  428. gxpath.$(OBJ): gxpath.c $(GXERR) \
  429.   $(gxfixed_h) $(gzpath_h)
  430.  
  431. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  432.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  433.  
  434. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  435.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  436.  
  437. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  438.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  439.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  440.  
  441. ###### High-level facilities
  442.  
  443. gschar.$(OBJ): gschar.c $(GXERR) \
  444.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  445.  
  446. gscolor.$(OBJ): gscolor.c $(GXERR) \
  447.   $(gscspace_h) \
  448.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzstate_h) $(gzcolor_h) $(gzht_h)
  449.  
  450. gscoord.$(OBJ): gscoord.c $(GXERR) \
  451.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  452.  
  453. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  454.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gxdevmem_h) $(gzstate_h) $(gzdevice_h)
  455.  
  456. gsfile.$(OBJ): gsfile.c $(GXERR) \
  457.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  458.  
  459. gsfont.$(OBJ): gsfont.c $(GXERR) \
  460.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  461.   $(gzstate_h)
  462.  
  463. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  464.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  465.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  466.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  467.  
  468. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  469.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  470.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  471.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  472.  
  473. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  474.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  475.  
  476. gsline.$(OBJ): gsline.c $(GXERR) \
  477.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  478.  
  479. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  480.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  481.  
  482. gsmisc.$(OBJ): gsmisc.c $(GX) $(MAKEFILE)
  483.     $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  484.  
  485. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  486.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  487.  
  488. gspath.$(OBJ): gspath.c $(GXERR) \
  489.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  490.  
  491. gspath2.$(OBJ): gspath2.c $(GXERR) \
  492.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  493.  
  494. gsstate.$(OBJ): gsstate.c $(GXERR) \
  495.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  496.  
  497. gstdev.$(OBJ): gstdev.c $(GXERR) \
  498.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  499.  
  500. gstype1.$(OBJ): gstype1.c $(GXERR) \
  501.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  502.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  503.  
  504. ###### The internal devices
  505.  
  506. gdevmem_h=gdevmem.h
  507.  
  508. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  509.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  510.  
  511. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  512.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  513.  
  514. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  515.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  516.  
  517. ###### Files dependent on the installed devices, features, and platform.
  518. # Generating gconfig.h also generates obj*.tr and lib.tr.
  519.  
  520. gconfig.h obj.tr objw.tr lib.tr: devs.mak $(MAKEFILE) echogs$(XE) $(UNIQ) \
  521.   $(DEVICE_DEVS) $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  522.   $(FEATURE_DEVS) $(PLATFORM).dev
  523.     $(SHP)gsconfig $(DEVICE_DEVS) +
  524.     $(SHP)gsconfig + $(DEVICE_DEVS2) +
  525.     $(SHP)gsconfig + $(DEVICE_DEVS3) +
  526.     $(SHP)gsconfig + $(DEVICE_DEVS4) +
  527.     $(SHP)gsconfig + $(DEVICE_DEVS5) +
  528.     $(SHP)gsconfig + $(FEATURE_DEVS) $(PLATFORM).dev
  529.  
  530. gconfig.$(OBJ): gconfig.c $(AK) gconfig.h $(MAKEFILE)
  531.     $(CC0) -DGS_LIB_DEFAULT=$(QQ)$(GS_LIB_DEFAULT)$(QQ) -DGS_INIT=$(QQ)$(GS_INIT)$(QQ) gconfig.c
  532.  
  533. ###### On Unix, we pre-link all of the library except the back end.
  534. ###### On MS-DOS, we have to do the whole thing at once.
  535.  
  536. LIB=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  537.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsimage.$(OBJ) gsimage2.$(OBJ) \
  538.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  539.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  540.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  541.  gxcache.$(OBJ) gxclist.$(OBJ) gxcolor.$(OBJ) gxcpath.$(OBJ) \
  542.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) gxhint1.$(OBJ) gxht.$(OBJ) \
  543.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  544.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  545.  
  546. # ------------------------------ Interpreter ------------------------------ #
  547.  
  548. ###### Include files
  549.  
  550. alloc_h=alloc.h
  551. astate_h=astate.h
  552. ccfont_h=ccfont.h
  553. dict_h=dict.h
  554. dparam_h=dparam.h
  555. dstack_h=dstack.h
  556. errors_h=errors.h
  557. estack_h=estack.h
  558. files_h=files.h
  559. font_h=font.h
  560. ghost_h=ghost.h $(gx_h) $(iref_h)
  561. iref_h=iref.h
  562. iutil_h=iutil.h
  563. main_h=main.h
  564. name_h=name.h
  565. opdef_h=opdef.h
  566. ostack_h=ostack.h
  567. overlay_h=overlay.h
  568. packed_h=packed.h
  569. save_h=save.h
  570. scanchar_h=scanchar.h
  571. scf_h=scf.h
  572. state_h=state.h
  573. store_h=store.h
  574. stream_h=stream.h
  575. # Nested include files
  576. bfont_h=bfont.h $(font_h)
  577. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  578. # Include files for optional features
  579. bnum_h=bnum.h
  580. bseq_h=bseq.h
  581. btoken_h=btoken.h
  582.  
  583. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  584.  
  585. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  586.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  587.  
  588. ###### Utilities
  589.  
  590. GH=$(AK) $(ghost_h)
  591.  
  592. ialloc.$(OBJ): ialloc.c $(AK) $(gs_h) $(gdebug_h) $(alloc_h) $(astate_h)
  593.  
  594. iccfont.$(OBJ): iccfont.c $(GH) gconfig.h \
  595.  $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) $(name_h) $(oper_h) $(save_h) $(store_h)
  596.  
  597. idebug.$(OBJ): idebug.c $(GH) \
  598.  $(iutil_h) $(dict_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  599.  
  600. idict.$(OBJ): idict.c $(GH) \
  601.   $(alloc_h) $(errors_h) $(name_h) $(packed_h) $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  602.  
  603. idparam.$(OBJ): idparam.c $(GH) \
  604.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  605.  
  606. iinit.$(OBJ): iinit.c $(GH) gconfig.h \
  607.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(name_h) $(oper_h) $(store_h)
  608.  
  609. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(name_h) $(store_h)
  610.  
  611. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  612.  
  613. iscan.$(OBJ): iscan.c $(GH) $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) \
  614.  $(name_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  615.  
  616. iutil.$(OBJ): iutil.c $(GH) \
  617.  $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  618.  $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  619.  
  620. sfilter.$(OBJ): sfilter.c $(AK) $(std_h) $(scanchar_h) $(stream_h) \
  621.  $(gscrypt1_h)
  622.  
  623. stream.$(OBJ): stream.c $(AK) $(std_h) $(stream_h) $(scanchar_h)
  624.  
  625. ###### Operators
  626.  
  627. OP=$(GH) $(errors_h) $(oper_h)
  628.  
  629. ### Non-graphics operators
  630.  
  631. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  632.  
  633. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  634.  
  635. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  636.  
  637. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(name_h) $(store_h)
  638.  
  639. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  640.   $(alloc_h) $(estack_h) $(files_h) $(iutil_h) $(save_h) $(stream_h) $(store_h)
  641.  
  642. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  643.   $(estack_h) $(files_h) $(store_h) $(stream_h) \
  644.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  645.  
  646. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  647.  
  648. zgeneric.$(OBJ): zgeneric.c $(OP) $(dict_h) $(estack_h) $(name_h) $(packed_h) $(store_h)
  649.  
  650. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  651.  
  652. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) \
  653.   $(alloc_h) $(dict_h) $(dstack_h) $(name_h) $(packed_h) $(store_h) \
  654.   $(gscrypt1_h)
  655.  
  656. zpacked.$(OBJ): zpacked.c $(OP) \
  657.   $(alloc_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  658.  
  659. zprops.$(OBJ): zprops.c $(OP) \
  660.   $(alloc_h) $(dict_h) $(name_h) $(store_h) \
  661.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h)
  662.  
  663. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  664.  
  665. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  666.  
  667. zstring.$(OBJ): zstring.c $(OP) $(alloc_h) $(iutil_h) $(name_h) $(store_h) $(stream_h)
  668.  
  669. ztype.$(OBJ): ztype.c $(OP) $(dict_h) $(iutil_h) $(name_h) $(stream_h) $(store_h)
  670.  
  671. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  672.   $(gsmatrix_h) $(gsstate_h)
  673.  
  674. ###### Graphics operators
  675.  
  676. zchar.$(OBJ): zchar.c $(OP) $(gxfixed_h) $(gxmatrix_h) \
  677.  $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  678.  $(alloc_h) $(dict_h) $(dstack_h) $(font_h) $(estack_h) $(state_h) $(store_h)
  679.  
  680. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  681.  
  682. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  683.  
  684. zfont.$(OBJ): zfont.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) \
  685.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  686.  
  687. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  688.  $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(store_h)
  689.  
  690. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  691.  $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(packed_h) $(store_h)
  692.  
  693. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  694.  
  695. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  696.  
  697. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  698.  
  699. zpaint.$(OBJ): zpaint.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gspaint_h) $(state_h) $(store_h) $(stream_h)
  700.  
  701. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  702.  
  703. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  704.  
  705. ###### Linking
  706.  
  707. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  708.  iinit.$(OBJ) iname.$(OBJ) \
  709.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  710.  sfilter.$(OBJ) stream.$(OBJ) \
  711.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  712.  zfile.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  713.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  714.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  715.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  716.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  717.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  718.  
  719. # -------------------------- Optional features ---------------------------- #
  720.  
  721. ### Additions common to Display PostScript and Level 2
  722.  
  723. dpsand2_=gsdps1.$(OBJ) ibnum.$(OBJ) ibscan.$(OBJ) \
  724.  zbseq.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ)
  725. dpsand2.dev: $(dpsand2_)
  726.     $(SHP)gssetmod dpsand2 $(dpsand2_)
  727.     $(SHP)gsaddmod dpsand2 -oper zbseq zdps1 zupath
  728.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  729.  
  730. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gsmatrix_h) $(gspath_h)
  731.  
  732. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  733.  
  734. ibscan.$(OBJ): ibscan.c $(GH) $(errors_h) \
  735.  $(alloc_h) $(dict_h) $(dstack_h) $(iutil_h) $(name_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) $(bseq_h) $(btoken_h) $(bnum_h)
  736.  
  737. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(name_h) $(bnum_h) $(btoken_h) $(bseq_h)
  738.  
  739. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  740.  $(alloc_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  741.  
  742. zupath.$(OBJ): zupath.c $(OP) \
  743.  $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  744.  $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  745.  $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  746.  
  747. ### Display PostScript
  748. # We should include zcontext, but it isn't in good enough shape yet:
  749. #    $(SHP)gsaddmod dps -oper zcontext
  750.  
  751. dps_=
  752. dps.dev: dpsand2.dev $(dps_)
  753.     $(SHP)gssetmod dps $(dps_)
  754.     $(SHP)gsaddmod dps -include dpsand2
  755.  
  756. zcontext.$(OBJ): zcontext.c $(OP) \
  757.  $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  758.  
  759. ### Level 2 additions
  760. # We should include gscie and zcie, but they aren't anywhere near ready.
  761.  
  762. level2_=gscolor2.$(OBJ) zcolor2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ)
  763. level2.dev: dpsand2.dev $(level2_)
  764.     $(SHP)gssetmod level2 $(level2_)
  765.     $(SHP)gsaddmod level2 -include dpsand2
  766.     $(SHP)gsaddmod level2 -oper zcolor2 zimage2
  767.     $(SHP)gsaddmod level2 -ps gs_lev2
  768.  
  769. gscie.$(OBJ): gscie.c $(std_h) \
  770.   $(gscspace_h) $(gscie_h)
  771.  
  772. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  773.   $(gscolor2_h) $(gscspace_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  774.   $(gzcolor_h) $(gzstate_h)
  775.  
  776. zcie.$(OBJ): zcie.c $(OP) $(gscspace_h) $(gscie_h) \
  777.   $(dict_h) $(dparam_h) $(state_h)
  778.  
  779. zcolor2.$(OBJ): zcolor2.c $(OP) \
  780.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  781.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  782.  
  783. zht2.$(OBJ): zht2.c $(OP) \
  784.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  785.  
  786. zimage2.$(OBJ): zimage2.c $(OP) \
  787.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  788.   $(dict_h) $(dparam_h) $(state_h)
  789.  
  790. ### Composite font support
  791.  
  792. gschar0.$(OBJ): gschar0.c $(GXERR) \
  793.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  794.  
  795. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  796.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(state_h) $(store_h)
  797.  
  798. compfont_=zfont0.$(OBJ) gschar0.$(OBJ)
  799. compfont.dev: $(compfont_)
  800.     $(SHP)gssetmod compfont $(compfont_)
  801.     $(SHP)gsaddmod compfont -oper zfont0
  802.  
  803. ### Filters other than the ones in sfilter.c
  804.  
  805. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  806.  
  807. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  808.  
  809. scfd.$(OBJ): scfd.c $(AK) $(std_h) $(gdebug_h) $(scf_h) $(stream_h)
  810.  
  811. scfe.$(OBJ): scfe.c $(AK) $(std_h) $(gdebug_h) $(scf_h) $(stream_h)
  812.  
  813. sfilter2.$(OBJ): sfilter2.c $(AK) $(std_h) $(scanchar_h) $(stream_h)
  814.  
  815. slzwd.$(OBJ): slzwd.c $(AK) $(std_h) $(gdebug_h) $(stream_h)
  816.  
  817. slzwe.$(OBJ): slzwe.c $(AK) $(std_h) $(gdebug_h) $(stream_h)
  818.  
  819. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(stream_h)
  820.  
  821. # Because of size limits on the DOS command line,
  822. # we have to break this up into two parts.
  823. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ)
  824. filter_2=scfd.$(OBJ) scfe.$(OBJ) scfdtab.$(OBJ) scftab.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  825. filter.dev: $(filter_1) $(filter_2)
  826.     $(SHP)gssetmod filter $(filter_1)
  827.     $(SHP)gsaddmod filter -obj $(filter_2)
  828.     $(SHP)gsaddmod filter -oper zfilter2
  829.  
  830. ### Precompiled fonts.  See fonts.doc for more information.
  831.  
  832. CCFONT=$(OP) $(ccfont_h)
  833.  
  834. ccfonts_=ugly.$(OBJ)
  835. ccfonts.dev: $(ccfonts_) iccfont.$(OBJ)
  836.     $(SHP)gssetmod ccfonts $(ccfonts_) iccfont.$(OBJ)
  837.     $(SHP)gsaddmod ccfonts -oper ccfonts
  838.     $(SHP)gsaddmod ccfonts -font Ugly
  839.  
  840. ugly.$(OBJ): ugly.c $(CCFONT)
  841.  
  842. ncrr.$(OBJ): ncrr.c $(CCFONT)
  843.  
  844. psyr.$(OBJ): psyr.c $(CCFONT)
  845.  
  846. ptmr.$(OBJ): ptmr.c $(CCFONT)
  847.  
  848. pzdr.$(OBJ): pzdr.c $(CCFONT)
  849.  
  850. # ----------------------------- Main program ------------------------------ #
  851.  
  852. # Interpreter main program
  853.  
  854. gs.$(OBJ): gs.c $(GH) $(gxdevice_h) $(gxdevmem_h) \
  855.   $(alloc_h) $(errors_h) $(estack_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  856.  
  857. gsmain.$(OBJ): gsmain.c $(GH) \
  858.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  859.   $(estack_h) $(main_h) $(ostack_h) $(store_h)
  860.  
  861. interp.$(OBJ): interp.c $(GH) \
  862.   $(errors_h) $(estack_h) $(name_h) $(dict_h) $(dstack_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  863.     $(CCINT) interp.c
  864. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  865. #    Distributed by Free Software Foundation, Inc.
  866. #
  867. # This file is part of Ghostscript.
  868. #
  869. # Ghostscript is distributed in the hope that it will be useful, but
  870. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  871. # to anyone for the consequences of using it or for whether it serves any
  872. # particular purpose or works at all, unless he says so in writing.  Refer
  873. # to the Ghostscript General Public License for full details.
  874. #
  875. # Everyone is granted permission to copy, modify and redistribute
  876. # Ghostscript, but only under the conditions described in the Ghostscript
  877. # General Public License.  A copy of this license is supposed to have been
  878. # given to you along with Ghostscript so you can know your rights and
  879. # responsibilities.  It should be in a file named COPYING.  Among other
  880. # things, the copyright notice and this notice must be preserved on all
  881. # copies.
  882.  
  883. # makefile for Ghostscript device drivers.
  884.  
  885. # -------------------------------- Catalog ------------------------------- #
  886.  
  887. # It is possible to build Ghostscript with an arbitrary collection of
  888. # device drivers, although some drivers are supported only on a subset
  889. # of the target platforms.  The currently available drivers are:
  890.  
  891. # Displays:
  892. #   MS-DOS EGA and VGA:
  893. #    ega    EGA (640x350, 16-color)
  894. #    vga    VGA (640x480, 16-color)
  895. #   MS-DOS SuperVGA:
  896. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  897. # *    mdb10    EIZO MDB-10 (1024 x 768)
  898. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  899. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  900. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  901. # +    tvga    Trident SuperVGA, 256-color modes
  902. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  903. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  904. #   ****** compiler or executable.
  905. #    vesa    SuperVGA with VESA standard API driver
  906. #   MS-DOS other:
  907. #    bgi    Borland Graphics Interface (CGA and Hercules)
  908. #    mswin    Microsoft Windows 3.0, 3.1
  909. # *    pe    Private Eye
  910. #   Unix and VMS:
  911. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  912. # *    sunview  SunView window system   [SunOS only]
  913. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  914. # Printers:
  915. #    bj10e    Canon BubbleJet BJ10e
  916. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  917. # *    cdjcolor  H-P DeskJet 500C with 8 bit/pixel color and
  918. #        high-quality color (Floyd-Steinberg) dithering
  919. # *    cdjmono  H-P DeskJet 500C printing black only
  920. # +    deskjet  H-P DeskJet and DeskJet Plus
  921. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  922. # *    dfaxlow  DigiFAX low (normal) resolution
  923. #    djet500  H-P DeskJet 500
  924. # *    djet500c  H-P DeskJet 500C
  925. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  926. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  927. #        (triple resolution)
  928. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  929. # +    laserjet  H-P LaserJet
  930. # *    la50    DEC LA50 printer
  931. # *    la75    DEC LA75 printer
  932. # *    lbp8    Canon LBP-8II laser printer
  933. # *    ln03    DEC LN03 printer
  934. # *    lj250    DEC LJ250 Companion color printer
  935. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  936. # +    ljet3    H-P LaserJet III* with Delta Row compression
  937. # *    ljetplus  H-P LaserJet Plus
  938. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  939. #    paintjet  H-P PaintJet color printer
  940. # *    pjetxl    H-P PaintJet XL color printer
  941. # *    r4081    Ricoh 4081 laser printer
  942. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  943. # *    trufax    TruFax facsimile driver  [Unix only]
  944. # File formats and others:
  945. #    bit    A plain "bit bucket" device
  946. #    gifmono    Monochrome GIF file format
  947. #    gif8    8-bit color GIF file format
  948. #    pcxmono    Monochrome PCX file format
  949. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  950. #    pcx256    Newer color PCX file format (256-color)
  951. #    pbm    Portable Bitmap (plain format)
  952. #    pbmraw    Portable Bitmap (raw format)
  953. #    pgm    Portable Graymap (plain format)
  954. #    pgmraw    Portable Graymap (raw format)
  955. #    ppm    Portable Pixmap (plain format)
  956. #    ppmraw    Portable Pixmap (raw format)
  957.  
  958. # User-contributed drivers marked with * require hardware or software
  959. # that is not available to Aladdin Enterprises.  Please contact the
  960. # original contributors, not Aladdin Enterprises, if you have questions.
  961. # Contact information appears in the driver entry below.
  962. #
  963. # Drivers marked with a + are maintained by Aladdin Enterprises with
  964. # the assistance of users, since Aladdin Enterprises doesn't have access to
  965. # the hardware for these either.
  966.  
  967. # If you add drivers, it would be nice if you kept each list
  968. # in alphabetical order.
  969.  
  970. # Each platform-specific makefile contains a line of the form
  971. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  972. # where dev1 ... devn are the devices to be included in the build.
  973. # You may edit this line to select any desired set of devices.
  974. # dev1 will be used as the default device (unless overridden from
  975. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  976. # devices on a single line, you may add lines defining
  977. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  978. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  979. # etc. up to DEVICE_DEVS5.
  980. # Don't use continuation lines, since this may break the MS-DOS command
  981. # processor.
  982.  
  983. # ---------------------------- End of catalog ---------------------------- #
  984.  
  985. # If you want to add a new device driver, the examples below should be
  986. # enough of a guide to the correct form for the makefile rules.
  987.  
  988. # All device drivers depend on the following:
  989. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  990.  
  991. # Define the header files for device drivers.  Every header file used by
  992. # more than one device driver must be listed here.
  993. gdevpccm_h=gdevpccm.h
  994. gdevpcfb_h=gdevpcfb.h
  995. gdevpcl_h=gdevpcl.h
  996. gdevsvga_h=gdevsvga.h
  997. gdevx_h=gdevx.h
  998.  
  999. ###### ------------------- MS-DOS display devices ------------------- ######
  1000.  
  1001. # There are really only two drivers: an EGA/VGA driver (4 bit-planes,
  1002. # plane-addressed) and a SuperVGA driver (8 bit-planes, byte addressed).
  1003.  
  1004. ### ----------------------- EGA and VGA displays ----------------------- ###
  1005.  
  1006. gdevegaa.$(OBJ): gdevegaa.asm
  1007.  
  1008. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1009. ega.exe: $(ETEST) libc$(MM).tr
  1010.     $(COMPDIR)\tlink /v $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1011.  
  1012. ega.$(OBJ): ega.c $(GDEV)
  1013.     $(CCC) -v ega.c
  1014.  
  1015. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1016. # or an empty string.
  1017.  
  1018. EGAVGA=gdevpcfb.$(OBJ) $(PCFBASM)
  1019.  
  1020. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h)
  1021.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1022.  
  1023. # The EGA/VGA family includes: EGA, VGA, and MDB-10, and the
  1024. # Tseng ET3000/4000 and Trident SuperVGA in 16-color mode.
  1025.  
  1026. ega.dev: $(EGAVGA)
  1027.     $(SHP)gssetdev ega $(EGAVGA)
  1028.  
  1029. vga.dev: $(EGAVGA)
  1030.     $(SHP)gssetdev vga $(EGAVGA)
  1031.  
  1032. mdb10.dev: $(EGAVGA)
  1033.     $(SHP)gssetdev mdb10 $(EGAVGA)
  1034.  
  1035. tseng16.dev: $(EGAVGA)
  1036.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1037.  
  1038. tvga16.dev: $(EGAVGA)
  1039.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1040.  
  1041. ### ------------------------- SuperVGA displays ------------------------ ###
  1042.  
  1043. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1044.  
  1045. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h) $(gdevsvga_h)
  1046.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1047.  
  1048. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1049. # and VESA.
  1050.  
  1051. atiw.dev: $(SVGA)
  1052.     $(SHP)gssetdev atiw $(SVGA)
  1053.  
  1054. tseng.dev: $(SVGA)
  1055.     $(SHP)gssetdev tseng $(SVGA)
  1056.  
  1057. tvga.dev: $(SVGA)
  1058.     $(SHP)gssetdev tvga $(SVGA)
  1059.  
  1060. vesa.dev: $(SVGA)
  1061.     $(SHP)gssetdev vesa $(SVGA)
  1062.  
  1063. # The S3 driver doesn't share much code with the others.
  1064.  
  1065. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1066. s3vga.dev: $(s3vga_)
  1067.     $(SHP)gssetdev s3vga $(s3vga_)
  1068.  
  1069. gdevs3ga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1070.     $(CCD) gdevs3ga.c
  1071.  
  1072. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1073.  
  1074. # We should use an implicit rule for running bgiobj,
  1075. # but a bug in Borland's `make' utility makes this not work.
  1076.  
  1077. cga.$(OBJ): $(BGIDIR)\cga.bgi
  1078.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1079.  
  1080. egavga.$(OBJ): $(BGIDIR)\egavga.bgi
  1081.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1082.  
  1083. herc.$(OBJ): $(BGIDIR)\herc.bgi
  1084.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1085.  
  1086. # Include egavga.$(OBJ) for debugging only.
  1087. bgi_=gdevbgi.$(OBJ) cga.$(OBJ) herc.$(OBJ)
  1088. bgi.dev: $(bgi_)
  1089.     $(SHP)gssetdev bgi $(bgi_)
  1090.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1091.  
  1092. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE)
  1093.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIR)$(QQ) gdevbgi.c
  1094.  
  1095. ###### ------------------- The Private Eye display ------------------- ######
  1096. ### Note: this driver was contributed by a user:                          ###
  1097. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1098.  
  1099. pe_=gdevpe.$(OBJ)
  1100. pe.dev: $(pe_)
  1101.     $(SHP)gssetdev pe $(pe_)
  1102.  
  1103. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1104.  
  1105. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1106.  
  1107. mswin_=gdevmswn.$(OBJ)
  1108. mswin.dev: $(mswin_)
  1109.     $(SHP)gssetdev mswin $(mswin_)
  1110.  
  1111. gdevmswn.$(OBJ): gdevmswn.c $(GDEV) $(gp_h) $(gpcheck_h)
  1112.  
  1113. ###### --------------- Memory-buffered printer devices --------------- ######
  1114.  
  1115. PDEVH=$(GDEV) $(gdevprn_h)
  1116.  
  1117. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1118.  
  1119. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  1120.  
  1121. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1122. bj10e.dev: $(bj10e_)
  1123.     $(SHP)gssetdev bj10e $(bj10e_)
  1124.  
  1125. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1126.  
  1127. ### -------------------------- The DigiFAX device ----------------------- ###
  1128. ###    This driver outputs images in a format suitable for use with       ###
  1129. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1130. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1131. ### Note: this driver was contributed by a user: please contact           ###
  1132. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1133.  
  1134. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1135. dfaxhigh.dev: $(digifax_)
  1136.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1137.  
  1138. dfaxlow.dev: $(digifax_)
  1139.     $(SHP)gssetdev dfaxlow $(digifax_)
  1140.  
  1141. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1142.  
  1143. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1144.  
  1145. ### These are essentially the same device.
  1146. ### You can make A4 paper the default: see below.
  1147. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1148. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1149.  
  1150. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1151. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1152.  
  1153. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1154.  
  1155. # To make A4 paper the default, change the second line below this to
  1156. #    $(CCC) -DA4 gdevdjet.c
  1157. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1158.     $(CCC) gdevdjet.c
  1159.  
  1160. deskjet.dev: $(HPMONO)
  1161.     $(SHP)gssetdev deskjet $(HPMONO)
  1162.  
  1163. djet500.dev: $(HPMONO)
  1164.     $(SHP)gssetdev djet500 $(HPMONO)
  1165.  
  1166. laserjet.dev: $(HPMONO)
  1167.     $(SHP)gssetdev laserjet $(HPMONO)
  1168.  
  1169. ljetplus.dev: $(HPMONO)
  1170.     $(SHP)gssetdev ljetplus $(HPMONO)
  1171.  
  1172. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1173. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1174.  
  1175. ljet2p.dev: $(HPMONO)
  1176.     $(SHP)gssetdev ljet2p $(HPMONO)
  1177.  
  1178. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1179. ### IIIp, IIId, IIIsi.
  1180.  
  1181. ljet3.dev: $(HPMONO)
  1182.     $(SHP)gssetdev ljet3 $(HPMONO)
  1183.  
  1184. ### ------------ The H-P DeskJet 500C color printer device -------------- ###
  1185. ### Note: there are two different 500C drivers, both contributed by users.###
  1186. ###   If you have questions about the djet500c driver,                    ###
  1187. ###       please contact AKayser@et.tudelft.nl.                           ###
  1188. ###   If you have questions about the cdeskjet/cdjcolor/cdjmono drivers,  ###
  1189. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1190.  
  1191. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1192.  
  1193. cdeskjet.dev: $(cdeskjet_)
  1194.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1195.  
  1196. cdjcolor.dev: $(cdeskjet_)
  1197.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1198.  
  1199. cdjmono.dev: $(cdeskjet_)
  1200.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1201.  
  1202. # To make A4 paper the default, change the second line below this to
  1203. #    $(CCC) -DA4 gdevdjet.c
  1204. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1205.     $(CCC) gdevcdj.c
  1206.  
  1207. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1208. djet500c.dev: $(djet500c_)
  1209.     $(SHP)gssetdev djet500c $(djet500c_)
  1210.  
  1211. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1212.  
  1213. ### ----------------- The generic Epson printer device ----------------- ###
  1214.  
  1215. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1216.  
  1217. epson.dev: $(epson_)
  1218.     $(SHP)gssetdev epson $(epson_)
  1219.  
  1220. eps9high.dev: $(epson_)
  1221.     $(SHP)gssetdev eps9high $(epson_)
  1222.  
  1223. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) devs.mak
  1224.  
  1225. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1226. ### Note: this driver was contributed by users: please contact           ###
  1227. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1228.  
  1229. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1230. epsonc.dev: $(epsonc_)
  1231.     $(SHP)gssetdev epsonc $(epsonc_)
  1232.  
  1233. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH) devs.mak
  1234.  
  1235. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1236. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1237. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1238. ### If you have questions about the XL, please contact Rob Reiss         ###
  1239. ###       (rob@moray.berkeley.edu).                                      ###
  1240.  
  1241. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1242.  
  1243. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1244.  
  1245. lj250.dev: $(PJET)
  1246.     $(SHP)gssetdev lj250 $(PJET)
  1247.  
  1248. paintjet.dev: $(PJET)
  1249.     $(SHP)gssetdev paintjet $(PJET)
  1250.  
  1251. pjetxl.dev: $(PJET)
  1252.     $(SHP)gssetdev pjetxl $(PJET)
  1253.  
  1254. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1255. ### Note: this driver was contributed by users: please contact           ###
  1256. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1257. ### Note that the standard paper size for this driver is the European    ###
  1258. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1259.  
  1260. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1261. lbp8.dev: $(lbp8_)
  1262.     $(SHP)gssetdev lbp8 $(lbp8_)
  1263.  
  1264. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1265.  
  1266. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1267. ### Note: this driver was contributed by users: please contact           ###
  1268. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1269. ### A more general sixel driver is available from                        ###
  1270. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                      ###
  1271.  
  1272. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1273. ln03.dev: $(ln03_)
  1274.     $(SHP)gssetdev ln03 $(ln03_)
  1275.  
  1276. la50.dev: $(ln03_)
  1277.     $(SHP)gssetdev la50 $(ln03_)
  1278.  
  1279. la75.dev: $(ln03_)
  1280.     $(SHP)gssetdev la75 $(ln03_)
  1281.  
  1282. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1283.  
  1284. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1285. ### Note: this driver was contributed by users:                          ###
  1286. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1287.  
  1288. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1289. r4081.dev: $(r4081_)
  1290.     $(SHP)gssetdev r4081 $(r4081_)
  1291.  
  1292. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1293.  
  1294. ###### ------------------------ Sony devices ------------------------ ######
  1295. ### Note: these drivers were contributed by users: please contact        ###
  1296. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1297.  
  1298. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1299.  
  1300. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1301. sonyfb.dev: $(sonyfb_)
  1302.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1303.  
  1304. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1305.  
  1306. ### -------------------- Sony NWP533 printer device -------------------- ###
  1307.  
  1308. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1309. nwp533.dev: $(nwp533_)
  1310.     $(SHP)gssetdev nwp533 $(nwp533_)
  1311.  
  1312. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1313.  
  1314. ###### --------------------- The SunView device --------------------- ######
  1315. ### Note: this driver is maintained by a user: if you have questions,    ###
  1316. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1317.  
  1318. sunview_=gdevsun.$(OBJ)
  1319. sunview.dev: $(sunview_)
  1320.     $(SHP)gssetdev sunview $(sunview_)
  1321.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1322.  
  1323. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1324.  
  1325. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1326. ### Note: this driver was contributed by a user: please contact          ###
  1327. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1328.  
  1329. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1330. tek4696.dev: $(tek4696_)
  1331.     $(SHP)gssetdev tek4696 $(tek4696_)
  1332.  
  1333. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1334.  
  1335. ### ----------------- The TruFax facsimile device ---------------------- ###
  1336. ### Note: this driver was contributed by users: please contact           ###
  1337. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1338. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1339. ###   makers of the TruFax product.                                      ###
  1340.  
  1341. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1342. trufax.dev: $(trufax_)
  1343.     $(SHP)gssetdev trufax $(trufax_)
  1344.  
  1345. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1346.  
  1347. ###### ----------------------- The X11 device ----------------------- ######
  1348.  
  1349. # Aladdin Enterprises does not support Ghostview.  For more information
  1350. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1351.  
  1352. x11_=gdevx.$(OBJ) gdevxini.$(OBJ)
  1353. x11.dev: $(x11_)
  1354.     $(SHP)gssetdev x11 $(x11_)
  1355.     $(SHP)gsaddmod x11 -lib X11
  1356.  
  1357. # See the main makefile for the definition of XINCLUDE.
  1358. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1359. gdevx.$(OBJ): gdevx.c $(GDEVX)
  1360.     $(CCC) $(XINCLUDE) gdevx.c
  1361.  
  1362. gdevxini.$(OBJ): gdevxini.c $(GDEVX)
  1363.     $(CCC) $(XINCLUDE) gdevxini.c
  1364.  
  1365. ### ---------------------- The bit bucket device ----------------------- ###
  1366.  
  1367. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1368. bit.dev: $(bit_)
  1369.     $(SHP)gssetdev bit $(bit_)
  1370.  
  1371. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1372.  
  1373. ###### ----------------------- PC file formats ---------------------- ######
  1374.  
  1375. gdevpccm.$(OBJ): gdevpccm.c $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1376.  
  1377. ### ------------------------- GIF file formats ------------------------- ###
  1378.  
  1379. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1380.  
  1381. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1382.  
  1383. gifmono.dev: $(GIF)
  1384.     $(SHP)gssetdev gifmono $(GIF)
  1385.  
  1386. gif8.dev: $(GIF)
  1387.     $(SHP)gssetdev gif8 $(GIF)
  1388.  
  1389. ### ------------------------- PCX file formats ------------------------- ###
  1390.  
  1391. PCX=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1392.  
  1393. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1394.  
  1395. pcxmono.dev: $(PCX)
  1396.     $(SHP)gssetdev pcxmono $(PCX)
  1397.  
  1398. pcx16.dev: $(PCX)
  1399.     $(SHP)gssetdev pcx16 $(PCX)
  1400.  
  1401. pcx256.dev: $(PCX)
  1402.     $(SHP)gssetdev pcx256 $(PCX)
  1403.  
  1404. ###### ------------------- Portable Bitmap devices ------------------ ######
  1405. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1406.  
  1407. PXM=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1408.  
  1409. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1410.  
  1411. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1412.  
  1413. pbm.dev: $(PXM)
  1414.     $(SHP)gssetdev pbm $(PXM)
  1415.  
  1416. pbmraw.dev: $(PXM)
  1417.     $(SHP)gssetdev pbmraw $(PXM)
  1418.  
  1419. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1420.  
  1421. pgm.dev: $(PXM)
  1422.     $(SHP)gssetdev pgm $(PXM)
  1423.  
  1424. pgmraw.dev: $(PXM)
  1425.     $(SHP)gssetdev pgmraw $(PXM)
  1426.  
  1427. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1428.  
  1429. ppm.dev: $(PXM)
  1430.     $(SHP)gssetdev ppm $(PXM)
  1431.  
  1432. ppmraw.dev: $(PXM)
  1433.     $(SHP)gssetdev ppmraw $(PXM)
  1434. #    Copyright (C) 1990, 1992 Aladdin Enterprises.  All rights reserved.
  1435. #    Distributed by Free Software Foundation, Inc.
  1436. #
  1437. # This file is part of Ghostscript.
  1438. #
  1439. # Ghostscript is distributed in the hope that it will be useful, but
  1440. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1441. # to anyone for the consequences of using it or for whether it serves any
  1442. # particular purpose or works at all, unless he says so in writing.  Refer
  1443. # to the Ghostscript General Public License for full details.
  1444. #
  1445. # Everyone is granted permission to copy, modify and redistribute
  1446. # Ghostscript, but only under the conditions described in the Ghostscript
  1447. # General Public License.  A copy of this license is supposed to have been
  1448. # given to you along with Ghostscript so you can know your rights and
  1449. # responsibilities.  It should be in a file named COPYING.  Among other
  1450. # things, the copyright notice and this notice must be preserved on all
  1451. # copies.
  1452.  
  1453. # Partial makefile for Ghostscript, common to all Unix configurations.
  1454.  
  1455. # This is the last part of the makefile for Unix configurations.
  1456. # Since Unix make doesn't have an 'include' facility, we concatenate
  1457. # the various parts of the makefile together by brute force (in tar_cat).
  1458.  
  1459. # The following prevents GNU make from constructing argument lists that
  1460. # include all environment variables, which can easily be longer than
  1461. # brain-damaged system V allows.
  1462.  
  1463. .NOEXPORT:
  1464.  
  1465. # -------------------------------- Library -------------------------------- #
  1466.  
  1467. ## The Unix platforms
  1468.  
  1469. # All reasonable Unix platforms.
  1470. unix__=gp_unix.$(OBJ)
  1471. unix_.dev: $(unix__)
  1472.     $(SHP)gssetmod unix_ $(unix__)
  1473.  
  1474. gp_unix.$(OBJ): gp_unix.c $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1475.  $(stat__h) $(time__h)
  1476.  
  1477. # Brain-damaged System V platforms.
  1478. sysv__=gp_unix.$(OBJ) gp_sysv.$(OBJ)
  1479. sysv_.dev: $(sysv__)
  1480.     $(SHP)gssetmod sysv_ $(sysv__)
  1481.  
  1482. gp_sysv.$(OBJ): gp_sysv.c
  1483.  
  1484. # -------------------------- Auxiliary programs --------------------------- #
  1485.  
  1486. ansi2knr$(XE): ansi2knr.c
  1487.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1488.  
  1489. echogs$(XE): echogs.c
  1490.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1491.  
  1492. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1493. # produces a buggy executable.
  1494. genarch$(XE): genarch.c
  1495.     $(CC) -o genarch$(XE) genarch.c
  1496.  
  1497. # ----------------------------- Main program ------------------------------ #
  1498.  
  1499. # Main program
  1500.  
  1501. ALLUNIX=gsmain.$(OBJ) $(LIB)
  1502.  
  1503. # Interpreter main program
  1504.  
  1505. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  1506.  
  1507. # The second call on echogs writes a \.  This is the only
  1508. # way to do it that works with all flavors of shell!
  1509. gs: $(GSUNIX) obj.tr lib.tr echogs
  1510.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  1511.     ./echogs -x 205c >>_temp_
  1512.     cat obj.tr >>_temp_
  1513.     cat lib.tr >>_temp_
  1514.     echo $(EXTRALIBS) -lm >>_temp_
  1515.     $(SH) <_temp_
  1516.  
  1517. # Installation
  1518.  
  1519. TAGS:
  1520.     etags -t *.c *.h
  1521.  
  1522. docdir=$(gsdatadir)/doc
  1523. exdir=$(gsdatadir)/examples
  1524. sysdir=$(gsdatadir)/system
  1525.  
  1526. install: gs
  1527.     -mkdir $(bindir)
  1528.     $(INSTALL_PROGRAM) gs $(bindir)
  1529.     $(INSTALL_PROGRAM) gsnd $(bindir)
  1530.     $(INSTALL_PROGRAM) bdftops $(bindir)
  1531.     $(INSTALL_PROGRAM) font2c $(bindir)
  1532.     $(INSTALL_PROGRAM) pfbtogs $(bindir)
  1533.     $(INSTALL_PROGRAM) showpbm $(bindir)
  1534.     -mkdir $(gsdatadir)
  1535.     $(INSTALL_DATA) README $(gsdatadir)
  1536.     $(INSTALL_DATA) gs_init.ps $(gsdatadir)
  1537.     $(INSTALL_DATA) gs_2asc.ps $(gsdatadir)
  1538.     $(INSTALL_DATA) gs_dps1.ps $(gsdatadir)
  1539.     $(INSTALL_DATA) gs_fonts.ps $(gsdatadir)
  1540.     $(INSTALL_DATA) gs_lev2.ps $(gsdatadir)
  1541.     $(INSTALL_DATA) gs_statd.ps $(gsdatadir)
  1542.     $(INSTALL_DATA) sym__enc.ps $(gsdatadir)
  1543.     $(INSTALL_DATA) quit.ps $(gsdatadir)
  1544.     $(INSTALL_DATA) Fontmap $(gsdatadir)
  1545.     $(INSTALL_DATA) uglyr.gsf $(gsdatadir)
  1546.     $(INSTALL_DATA) bdftops.ps $(gsdatadir)
  1547.     $(INSTALL_DATA) decrypt.ps $(gsdatadir)
  1548.     $(INSTALL_DATA) font2c.ps $(gsdatadir)
  1549.     $(INSTALL_DATA) impath.ps $(gsdatadir)
  1550.     $(INSTALL_DATA) landscap.ps $(gsdatadir)
  1551.     $(INSTALL_DATA) pfbtogs.ps $(gsdatadir)
  1552.     $(INSTALL_DATA) prfont.ps $(gsdatadir)
  1553.     $(INSTALL_DATA) pstoppm.ps $(gsdatadir)
  1554.     $(INSTALL_DATA) showpbm.ps $(gsdatadir)
  1555.     $(INSTALL_DATA) type1ops.ps $(gsdatadir)
  1556.     $(INSTALL_DATA) wrfont.ps $(gsdatadir)
  1557.     -mkdir $(docdir)
  1558.     $(INSTALL_DATA) NEWS $(docdir)
  1559.     $(INSTALL_DATA) history.doc $(docdir)
  1560.     $(INSTALL_DATA) drivers.doc $(docdir)
  1561.     $(INSTALL_DATA) fonts.doc $(docdir)
  1562.     $(INSTALL_DATA) hershey.doc $(docdir)
  1563.     $(INSTALL_DATA) humor.doc $(docdir)
  1564.     $(INSTALL_DATA) language.doc $(docdir)
  1565.     $(INSTALL_DATA) lib.doc $(docdir)
  1566.     $(INSTALL_DATA) make.doc $(docdir)
  1567.     $(INSTALL_DATA) psfiles.doc $(docdir)
  1568.     $(INSTALL_DATA) readme.doc $(docdir)
  1569.     $(INSTALL_DATA) use.doc $(docdir)
  1570.     -mkdir $(exdir)
  1571.     $(INSTALL_DATA) chess.ps $(exdir)
  1572.     $(INSTALL_DATA) cheq.ps $(exdir)
  1573.     $(INSTALL_DATA) colorcir.ps $(exdir)
  1574.     $(INSTALL_DATA) golfer.ps $(exdir)
  1575.     $(INSTALL_DATA) escher.ps $(exdir)
  1576.     $(INSTALL_DATA) snowflak.ps $(exdir)
  1577.     $(INSTALL_DATA) tiger.ps $(exdir)
  1578.